<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %>
    <%@ include file="/WEB-INF/tiles2/common.jsp" %>
<div class="modal hide fade" id="loginmodal" role="dialog">
	<div class="modal-header">
		<h3>로그인<a class="btn btn-inverse fright" 
			data-dismiss="modal">닫기</a></h3>
	</div>
	
	<div class="modal-body modalbody">
		<form id="loginfrm" class="form-horizontal">
			<div class="control-group inverse">
				<label class="control-label" for="uid">아이디</label>
				<div class="controls">
					<input type="text" name="uid" id="uid"
					maxlength="16" class="input-large" >
				</div>
			</div>
			
			<div class="control-group inverse">
				<label class="control-label" for="pwd">
				비밀번호</label>
				<div class="controls">
					<input type="password" name="pwd"
					id="pwd" maxlength="16" class="input-large">					
				</div>
			</div>
			 
			<div class="control-group warning">
				<div class="controls">
					<label class="checkbox">
						<input type="checkbox" 
						name="savelogin">로그인 상태 유지
					</label>
				</div>
			</div>
		</form>
	</div>
	
	<div class="modal-footer tcenter">
		<a class="btn btn-inverse" id="loginbtn">로그인</a>
		<a class="btn btn-danger">아이디/비밀번호 찾기</a>
	</div>
</div>
<script>
   $("#loginbtn").on("click",function(event){
      if($("#uid").val()=="")alert("아이디를 입력하세요.");
      else if($("#pwd").val()=="")alert("비밀번호 입력하세요.");
      else $("#loginfrm").attr("method","post").attr("action","<c:url value='/admin/login.mvc'/>").submit();
   });
 
</script>




